package 单例模式.负载均衡器;

public class Client {
    public static void main(String[] args) {
        LoadBalancer loadBalancer1=LoadBalancer.getLoadBalancer();
        LoadBalancer loadBalancer2=LoadBalancer.getLoadBalancer();
        System.out.println("判断负载均衡器1和负载均衡器2是否为同一个");
        System.out.println(loadBalancer1==loadBalancer2);
        System.out.println("loadBalancer1的hashcode:"+loadBalancer1.hashCode());
        System.out.println("loadBalancer2的hashcode:"+loadBalancer2.hashCode());
    }
}
